﻿using Simple.Tools.SnowFlake;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Simple.Entity.Entity
/// <summary>
/// 版 本 钢易智企2.0 V 2.0.0 钢易智企2.0
/// Copyright (c) 2023 杭州钢易科技有限公司
/// 创建人：曾东明
/// 日 期：2024
/// 描 述：
/// </summary>
{
	[SugarTable("t_sys_menu")]
	public class SysMenuEntity:WholeEntity<long>
	{
		/// <summary>
		/// 
		/// </summary>
		public SysMenuEntity(bool IsCreate=false)
		{
			if (IsCreate)
			{
				Id = Worker.GetId();
				IsDelete = false;
			}
		}

		public SysMenuEntity():this(false)
		{
			
		}
		/// <summary>
		/// 菜单名称
		/// </summary>
		[SugarColumn(ColumnName="menu_name")]
        public string MenuName { get; set; }
		/// <summary>
		/// 排序号
		/// </summary>
		[SugarColumn(ColumnName = "soft")]
		public int Soft { get; set; }

		/// <summary>
		/// 菜单路径
		/// </summary>
		[SugarColumn(ColumnName = "menu_path")]
		public string MenuPath { get; set; }

		/// <summary>
		/// 菜单图标
		/// </summary>
		[SugarColumn(ColumnName = "menu_icon")]
		public string MenuIcon { get; set; }
		/// <summary>
		/// 父级菜单id
		/// </summary>
		[SugarColumn(ColumnName = "parent_id")]
		public long ParentId { get; set; }

		/// <summary>
		/// 是否有子菜单
		/// </summary>
		[SugarColumn(ColumnName = "is_child")]
		public bool IsChild { get; set; }

		/// <summary>
		///1-系统菜单 2-用户菜单
		/// </summary>
		[SugarColumn(ColumnName = "menu_type")]
		public int MenuType { get; set; }
	}
}
